#include "EmgDemo.h"

Emg::Emg(void)
{	
}

Emg::~Emg(void)
{
}

Command Emg::getRandomEmgSignal()
{
	int type = rand() % 4;
	Command cmd = Command(Command::STOP, 0, 0);
	switch(type){
		case 0:
			cmd = Command(Command::STOP, 0, 0);			
		case 1:
			cmd = Command(Command::FLT_EST, (rand() % 211) - 105, rand() % 2);			
		case 2:
			cmd = Command(Command::ABDUCTION, (rand() % 91) - 45, rand() % 2);	
		case 3:
			cmd = Command(Command::OFF, 0, 0);
		default:
			cmd = Command(Command::STOP, 0, 0);
	}
	return cmd;
		
}

void Emg::getCommand(Command c)  
{	

}